import request from '@/utils/request'

// 查询中奖信息列表
export function listPrizewinrecord(query) {
  return request({
    url: '/system/prizewinrecord/list',
    method: 'get',
    params: query
  })
}

// 查询中奖信息详细
export function getPrizewinrecord(id) {
  return request({
    url: '/system/prizewinrecord/' + id,
    method: 'get'
  })
}

// 新增中奖信息
export function addPrizewinrecord(data) {
  return request({
    url: '/system/prizewinrecord',
    method: 'post',
    data: data
  })
}

// 修改中奖信息
export function updatePrizewinrecord(data) {
  return request({
    url: '/system/prizewinrecord',
    method: 'put',
    data: data
  })
}

// 删除中奖信息
export function delPrizewinrecord(id) {
  return request({
    url: '/system/prizewinrecord/' + id,
    method: 'delete'
  })
}

// 导出中奖信息
export function exportPrizewinrecord(query) {
  return request({
    url: '/system/prizewinrecord/export',
    method: 'get',
    params: query
  })
}